<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/static/layui/css/layui.css">
<script src="${pageContext.request.contextPath }/static/js/jquery-1.12.4.min.js"></script>
<script src="${pageContext.request.contextPath }/static/layui/layui.js"></script>
</head>
<body style="background: #f1f1f1;">
	<form class="layui-form white-bg radius" style="padding-top: 10%;">
		<input type="hidden" id="bjids" value="${bjs.id}">
		<input type="hidden" id="id" value="${model.id}">
		
		<div class="layui-form-item">
			<div class="layui-inline" style="width: 300px;">
				<label class="layui-form-label">班级</label>
				<div class="layui-input-block">
					<input type="text" id="banji" name="banji" value="${bjs.name}"
						readonly="readonly" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline" style="width: 300px;">
				<label class="layui-form-label">学员</label>
				<div class="layui-input-block">
					<select id="stu" lay-filter="stu" lay-search>
						<option value=""></option>
						<c:forEach items="${stu}" var="s">
							<option value="${s.id }"
								<c:if test="${s.id==model.student.id}">selected="selected"</c:if>>${s.name}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline" style="width: 300px;">
				<label class="layui-form-label">职务</label>
				<div class="layui-input-block">
					<select id="position" lay-filter="position"  lay-search>
						<option value=""></option>
						<c:forEach items="${data}" var="data">
							<option value="${data.name}"
								<c:if test="${fn:contains(model.position,data.name)}">selected="selected"</c:if>>${data.name}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</div>
	</form>
	<script type="text/javascript">
		layui.use('form', function() {
			form = layui.form;
			form.render('select');

		});
	</script>

</body>
</html>